﻿<include file="Index/header"/>
<include file="Index/header"/>
<script language="javascript" type="text/javascript" src="__PUBLIC__/My97DatePicker/WdatePicker.js"></script>

    
  <include file="Index/left"/>
    
    
    <div class="content">
        
        <div class="header">
            
            <h1 class="page-title">修改支付资料</h1>
        </div>
        
                <ul class="breadcrumb">
            <li><a href="#">首页</a> <span class="divider">/</span></li>
            <li><a href="#">支付管理</a> <span class="divider">/</span></li>
            <li class="active">支付信息管理</li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
                    

<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#home" data-toggle="tab">修改支付信息</a></li>

    </ul>
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane active in" id="home">
          <form id="tab" >
       
                     <label>appid：</label>
        <input type="text" value="{$us.appid}" name="appid" class="input-xlarge">
        <label>appsecret：</label>
         <input type="hidden" value="{$us.id}" name="id" class="input-xlarge">
        <input type="text" value="{$us.appsecret}" name="appsecret" class="input-xlarge">
        <label>商户号：</label>
        <input type="text" value="{$us.partnerid}" name="partnerid" class="input-xlarge">
        <label>商户秘钥：</label>
        <input type="text" value="{$us.partnerkey}" name="partnerkey" class="input-xlarge">
         <label>商户名称：</label>
        <input type="text" value="{$us.merchant}" name="merchant" class="input-xlarge">
        <label>下单通知人Openid：</label>
        <input type="text" value="{$us.admin_openid}" name="admin_openid" class="input-xlarge">
        <label>下单通知模板：</label>
        <input type="text" value="{$us.ordertemplate}" name="ordertemplate" class="input-xlarge">  
        <label>客户通知模板：</label>
        <input type="text" value="{$us.tztemplate}" name="tztemplate" class="input-xlarge">   
        <label>支付通知模板：</label>
        <input type="text" value="{$us.xdtemplate}" name="xdtemplate" class="input-xlarge">   
        <br />
         <button  type="button" class="btn btn-primary" onclick="tj()">修改</button>
    </form>
      </div>
  
      </div>
  </div>

</div>



                    
                    <footer>
                        <hr>

                    
                    </footer>
                    
            </div>
        </div>
    </div>
   <script type="text/javascript">  
function tj(){

   $.ajax({
                type: "POST",
                url: "__CONTROLLER__/Paysetting",
           
                cache: false,
                data: $('#tab').serialize(),
         
                    success: function(data) {
                         data=$.trim(data);
                switch(data){
                           
                case '0':
                alert('修改成功');
                window.location.replace("__CONTROLLER__/Paysetting") 
                break;
                case '1': 
                 alert('修改失败');
           
                break;
                case '3': 
                 alert('用户编号已存在');
           
                break;
     
            default:
                alert(data);
        }
              
                       }
                    
        
        
        
        })

    
}
</script>

    <script src="__PUBLIC__/lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
    
  </body>
</html>


